package main

import (
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/orm"
	_ "myadmin/routers"
)

func main() {
	//数据库连接
	maxIdle := 30
	maxConn := 30
	orm.RegisterDataBase(
		"default",
		"mysql",
		"root:123456@/myadmin?charset=utf8",
		maxIdle,
		maxConn)

	//开始
	//定时清除session
	//go session.SetTimeClearn()
	beego.Run()
	//dbCommand()
}

func dbCommand() {
	orm.RunCommand()
}
